<?php
require_once PATH_SITE.'cn/royan/php/proxys/UserDisconnectProxy.proxy.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once PATH_SITE.'org/puremvc/php/patterns/command/SimpleCommand.php';
/**
 * Description of UserDisconnectCommand
 *
 * @author yanr
 */
class UserDisconnectCommand extends SimpleCommand
{
    //put your code here
    public function execute(INotification $notification)
    {
        IF ( !$this->facade->hasProxy("UserDisconnectProxy") )
            $this->facade->registerProxy( new UserDisconnectProxy() );
        
        $userDisconnectProxy = $this->facade->retrieveProxy( UserDisconnectProxy::NAME );
        $userDisconnectProxy->removeUser( $notification->getBody() );
    }
}

?>
